﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAA.DesignPattern.Observer
{
    public class MessageInfo : IMessageInfo
    {
        private long _lTicks;
        private string _strSubject;
        private object _oMessage;

        public MessageInfo()
        {
            _lTicks = DateTime.Now.Ticks;
        }

        #region IMessageInfo Members

        public long MessageTicks
        {
            get
            {
                return _lTicks;
            }
            set
            {
                _lTicks = value;
            }
        }

        public string MessageSubject
        {
            get
            {
                return _strSubject;
            }
            set
            {
                _strSubject = value;
            }
        }

        public object Message
        {
            get
            {
                return _oMessage;
            }
            set
            {
                _oMessage = value;
            }
        }

        #endregion
    }
}
